pluginHome = new File( grailsSettings.projectPluginsDir.path ).listFiles().find { it.name.startsWith('cloud-tools-') }
if(pluginHome == null) pluginHome = "."

includeTargets << new File( "${pluginHome}/scripts/CloudToolsInit.groovy" )

target('default': "Enales the BRB Page") {
	list()
}

target(list: "The implementation task") {
	depends( initCloudToolsService)
    cloudToolsService.withClusterManager {clusterManager, clusterName ->
        clusterManager.listClusters().each{ name ->
			println(name);
		}
    }
	event('StatusFinal', ['Done listing clusters'])
}
